<template>
  <div>
    哈哈哈

  </div>
</template>

<script>
import AMapLoader from '@amap/amap-jsapi-loader'
import MapContainer from '@/views/hotel-book/hotel-info/map-container/map'
export default {
  name: 'HotelSystemIndex',
  components: {
    MapContainer
  },
  data () {
    return {

    }
  },
  mounted () {
    this.initAMap()
  },
  methods: {
    // 提交留言
    initAMap () {
      AMapLoader.load({
        key: '[您的key]', // 设置您的key
        version: '2.0',
        plugins: ['AMap.ToolBar', 'AMap.Driving'],
        AMapUI: {
          version: '1.1',
          plugins: []

        },
        Loca: {
          version: '2.0'
        }
      }).then((AMap) => {
        this.map = new AMap.Map('container', {
          viewMode: '3D',
          zoom: 5,
          zooms: [2, 22],
          center: [105.602725, 37.076636]
        })
      }).catch(e => {
        console.log(e)
      })
    }
  }

}
</script>

<style lang="less" scoped>

</style>
